<?php
/**
 * 开屏广告模型
 */

namespace app\api\model;


use app\common\model\BaseModel;
use PDOStatement;
use think\db\exception\DataNotFoundException;
use think\db\exception\ModelNotFoundException;
use think\exception\DbException;
use think\Model;

class Adver extends BaseModel {

    /**
     * 开屏广告
     * @return array|PDOStatement|string|Model|null
     * @throws DataNotFoundException
     * @throws ModelNotFoundException
     * @throws DbException
     */
    public static function getList() {
        return db('adver')
            ->field('url,link,type')
            ->find(1);
    }

}
